package com.hdax.service.Impl;

import com.hdax.entity.Positive;
import com.hdax.mappers.PositiveMapper;
import com.hdax.service.PositiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 积极服务impl
 *
 * @author Aizen
 * @date 2022/06/04
 */
@Service
public class PositiveServiceImpl implements PositiveService {
    @Autowired
    private PositiveMapper positiveMapper;

    @Override
    public List<Positive> findAll(int offset, int limit, Positive positive) {
        return positiveMapper.findAll(offset,limit,positive);
    }

    @Override
    public int count(Positive positive) {
        return positiveMapper.count(positive);
    }

    @Override
    public int insertByPo(Positive positive) {
        return positiveMapper.insertByPo(positive);
    }

    @Override
    public int updatePosi(Positive positive) {
        return positiveMapper.updatePosi(positive);
    }

    @Override
    public Positive findByid(Integer id) {
        return positiveMapper.findByid(id);
    }

    @Override
    public Integer findByid2(Integer id) {
        return positiveMapper.findByid2(id);
    }
}
